/*
package com.atxiao.util;

import com.andis.app.dao.AppBasicDao;
import com.andis.app.dto.AppBasicInfo;
import com.andis.app.service.AppBasicService;
import com.andis.app.util.UploadUtil;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Service;
import org.springframework.web.multipart.MultipartFile;

import javax.servlet.http.HttpServletRequest;
import java.util.HashMap;
import java.util.List;

*/
/**
 * app基本信息业务
 *
 * @author Fetter
 * @version v1.0
 * @date 2021/10/15 18:28
 *//*

@Service("appBasicServiceImpl")
public class AppBasicServiceImpl extends ServiceImpl<AppBasicDao, AppBasicInfo> implements AppBasicService {
    //获取根路径
    @Value("${file.path}")
    private String dirPath;

    */
/**
     *  图片上传接口
     * @param fileList
     * @param request
     * @return
     *//*

    @Override
    public HashMap uploadImg(List<MultipartFile> fileList, HttpServletRequest request) {
        if (UploadUtil.checkImg(fileList)){
            HashMap hashMap=UploadUtil.upload(fileList,request,dirPath);
            return hashMap;
        }else {
            HashMap hashMap=new HashMap();
            hashMap.put("error","请上传bmp/gif/jpg/png格式的图片");
            return hashMap;
        }
    }
}
*/
